<div id="sidebar1">
	<div>
            <a href="http://www.ancu.com" target="_blank" title="AnCu"><img src="<?php echo $config ['client_images_url'];?>/adv_05.jpg" alt="http://www.ancu.com" /></a>
            <a href="http://www.olo.vn" target="_blank" title="Rao vặt nhà đất"><img src="<?php echo $config ['client_images_url'];?>/adv_06.jpg" alt="Rao vặt nhà đất" /></a>
	</div>
	<div class="marT5 clearfix">
		<div class="sidebar_l">
			<div class="box_cat">
				<h3><a>Tiêu điểm</a></h3>
				<div class="box_cat_content box_hot_news">
					<ul class="list_hot_news">
                                            <?php
                                                $otherArticleNotInCategory = ortherArticlesNotInCategory($article['create_date'], $article['cat_id'],10);
                                            ?>
                                            <?php
                                                $e=0;
                                                while($rs=$DB->fetch_array($otherArticleNotInCategory['rsNewer'])){
                                                    $e++;
                                                    if($e%2!=0){
                                            ?>
						<li>
							<div class="clearfix">
								<div class="hot_news_img left"><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><img src="<?php echo createThumb($rs['image'], '47-47');?>" alt="<?php echo $rs['title'];?>" /></a></div>
                                                                <p><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><?php echo cutString($rs['title'],35);?></a></p>
								<p><?php echo cutString($rs['short_description'],80);?></p>
							</div>
						</li>
                                                <?php
                                                    }else{
                                                ?>
						<li class="even">
							<div class="clearfix">
                                                                <div class="hot_news_img right"><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><img src="<?php echo createThumb($rs['image'], '47-47');?>" alt="<?php echo $rs['title'];?>" /></a></div>
								<p><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><?php echo cutString($rs['title'],35);?></a></p>
								<p><?php echo cutString($rs['short_description'],80);?></p>
							</div>
						</li>
                                            <?php
                                                    }
                                                }
                                            ?>


                                            <?php
                                                $e=0;
                                                while($rs=$DB->fetch_array($otherArticleNotInCategory['rsOlder'])){
                                                    $e++;
                                                    if($e%2!=0){
                                            ?>
						<li>
							<div class="clearfix">
								<div class="hot_news_img left"><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><img src="<?php echo createThumb($rs['image'], '47-47');?>" alt="<?php echo $rs['title'];?>" /></a></div>
                                                                <p><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><?php echo cutString($rs['title'],35);?></a></p>
								<p><?php echo cutString($rs['short_description'],80);?></p>
							</div>
						</li>
                                                <?php
                                                    }else{
                                                ?>
						<li class="even">
							<div class="clearfix">
                                                                <div class="hot_news_img right"><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><img src="<?php echo createThumb($rs['image'], '47-47');?>" alt="<?php echo $rs['title'];?>" /></a></div>
								<p><a href="/<?php echo $rs['link'];?>.html" title="<?php echo viewTitleLink($rs['title']);?>"><?php echo cutString($rs['title'],35);?></a></p>
								<p><?php echo cutString($rs['short_description'],80);?></p>
							</div>
						</li>
                                            <?php
                                                    }
                                                }
                                            ?>

					</ul>
				</div>
			</div>
			
			<div class="advertise_sidebar_l marT5"><a href="#"><img src="<?php echo $config ['client_images_url'];?>/adv_11.jpg" alt="" /></a></div>
			<div class="box_cat marT5">
                        <?php
                            $rsLastestArticleByCatId = getLastestArticlesByCategoryId(13);//category Thuong mai - Van phong
                        ?>
                            <h3><a href="/cata/<?php echo $rsLastestArticleByCatId['cat_link'];?>" title="<?php echo viewTitleLink($rsLastestArticleByCatId['cat_name']);?>"><?php echo $rsLastestArticleByCatId['cat_name'];?></a></h3>
                        <div class="box_cat_content">
                            <div class="cat_featured_news clearfix">
                                <div class="cat_featured_news_img"><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>"><img src="<?php echo createThumb($rsLastestArticleByCatId['image']);?>" alt="<?php echo $rsLastestArticleByCatId['title'];?>" /></a></div>
                                <p><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>"><?php echo $rsLastestArticleByCatId['title'];?></a></p>
                                <p><?php echo cutString($rsLastestArticleByCatId['short_description'],100);?></p>
                                <div class="detail"><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>">Chi tiết</a></div>
                            </div>
                            <div class="related_news">
                                <ul>
                                    <?php
                                        $otherArticle = getArticleByCategoryIdOffsetLimit(13,1,3);
                                        while($rsOther=$DB->fetch_array($otherArticle)){
                                    ?>
                                    <li><a href="/<?php echo $rsOther['link'];?>.html" title="<?php echo viewTitleLink($rsOther['title']);?>"><?php echo $rsOther['title'];?></a></li>
                                    <?php
                                        }
                                    ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="box_cat marT5">
                        <?php
                            $rsLastestArticleByCatId = getLastestArticlesByCategoryId(14);// category Khu cong nghiep
                        ?>
                        <h3><a href="/cata/<?php echo $rsLastestArticleByCatId['cat_link'];?>" title="<?php echo viewTitleLink($rsLastestArticleByCatId['cat_name']);?>"><?php echo $rsLastestArticleByCatId['cat_name'];?></a></h3>
                        <div class="box_cat_content">
                            <div class="cat_featured_news clearfix">
                                <div class="cat_featured_news_img"><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>"><img src="<?php echo createThumb($rsLastestArticleByCatId['image']);?>" alt="<?php echo $rsLastestArticleByCatId['title'];?>" /></a></div>
                                <p><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>"><?php echo $rsLastestArticleByCatId['title'];?></a></p>
                                <p><?php echo cutString($rsLastestArticleByCatId['short_description'],100);?></p>
                                <div class="detail"><a href="/<?php echo $rsLastestArticleByCatId['link'];?>.html" title="<?php echo viewTitleLink($rsLastestArticleByCatId['title']);?>">Chi tiết</a></div>
                            </div>
                            <div class="related_news">
                                <ul>
                                    <?php
                                        $otherArticle = getArticleByCategoryIdOffsetLimit(14,1,3);
                                        while($rsOther=$DB->fetch_array($otherArticle)){
                                    ?>
                                    <li><a href="/<?php echo $rsOther['link'];?>.html" title="<?php echo viewTitleLink($rsOther['title']);?>"><?php echo $rsOther['title'];?></a></li>
                                    <?php
                                        }
                                    ?>
                                </ul>
                            </div>
                        </div>
                    </div>
		</div>
		<div class="sidebar_r">
			<div class="advertise_sidebar_r"><a href="#"><img src="<?php echo $config ['client_images_url'];?>/adv_07.jpg" alt="" /></a></div>
			<div class="box_cat marT5">
				<h3><a>Bán - Mua - Cho - Cho thuê</a></h3>
				<div class="box_cat_content">
					<ul class="list_immovable_trade_short">
						<li>
							<a href="#">Cho thuê Dự án chung cư Ngọc Phương Nam</a>
							<p>hoạch tại phương Trần Lãm, thành phố Thái Bình</p>
						</li>
						<li>
							<a href="#">Cần bán Khu đô thị Trần Lãm, Thành phố...</a>
							<p>một nam thanh niên được xác định đã bị đột tử trong phòng nghỉ.</p>
						</li>
						<li>
							<a href="#">Cho thuê Dự án chung cư Ngọc Phương Nam</a>
							<p>hoạch tại phương Trần Lãm, thành phố Thái Bình</p>
						</li>
						<li>
							<a href="#">Cần bán Khu đô thị Trần Lãm, Thành phố...</a>
							<p>một nam thanh niên được xác định đã bị đột tử trong phòng nghỉ.</p>
						</li>
						<li class="last">
							<a href="#">Cho thuê Dự án chung cư Ngọc Phương Nam</a>
							<p>hoạch tại phương Trần Lãm, thành phố Thái Bình</p>
						</li>
					</ul>
				</div>
			</div>
			<div class="advertise_sidebar_r marT5"><a href="#"><img src="<?php echo $config ['client_images_url'];?>/adv_08.jpg" alt="" /></a></div>
		</div>
	</div>
</div>